<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once(dirname(__FILE__) . '/MY_Model.php');

class User_logger_m extends MY_Model {
	function __construct($db=null) {
        parent::__construct($db);
    }
    
    function get_logs_members($params){
		$this->db->select('user_logger.*,member.Email');
		$this->db->from('user_logger');
		$this->db->join('member','user_logger.user_id  = member.id');	
		$this->db->order_by('id','DESC');
		$this->db->limit($params['limit'],$params['start']);
		$query = $this->db->get();
		return $query->result();
    }
}